﻿using DDD.Simple.Repositories.Models;
using Product.Domain.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace DDD.Simple.Repositories.ProductRepositories
{
    public class ProductRepository
        : IProductRepository
    {
        private readonly ProductContext _ctx;
        public ProductRepository(ProductContext ctx)
        {
            _ctx = ctx;
        }
        public void Commit()
        {
            throw new NotImplementedException();
        }

        public async Task CreateProductAsync(ProductSPU productSPU)
        {
            await _ctx.ProductSPU.AddAsync(productSPU);
        }

        public void Dispose()
        {
            throw new NotImplementedException();
        }
    }
}
